package com.luo.demo;

/**
 * @author: luosiyu
 * @Description:
 * @Version: 1.0
 */

public abstract class shape {
    private double a;
    private double b;
    private double c;
    public shape() {
    }
    public shape(double a) {
        this.a = a;
    }
    public shape(double a, double b) {
        this.a = a;
        this.b = b;
    }
    public shape(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
    public double getA() {
        return a;
    }
    public void setA(double a) {
        this.a = a;
    }
    public double getB() {
        return b;
    }
    public void setB(double b) {
        this.b = b;
    }
    public double getC() {
        return c;
    }
    public void setC(double c) {
        this.c = c;
    }
    public abstract double area();
    public abstract double length();
    @Override
    public String toString() {
        return "面积="+area()+";周长="+length();
    }
}
